# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, BigInteger, String, DateTime, Boolean


class ExaFileUploadAndDownloads(Base):
    __tablename__ = 'exa_file_upload_and_downloads'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    name = Column(String(191),    doc='文件名')
    url = Column(String(191),    doc='文件地址')
    tag = Column(String(191),    doc='文件标签')
    key = Column(String(191),    doc='编号')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, doc='')
    deleted = Column(Boolean, default=0, doc='')